﻿<UserControl x:Class="Organizer.Views.UserControls.ForismaticCitesView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:my="clr-namespace:Organizer"
             xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
             xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP71"
             xmlns:ViewModel="clr-namespace:Organizer.ViewModel" mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">

    <UserControl.DataContext>
        <ViewModel:ForismaticCitesViewModel />
    </UserControl.DataContext>

    <Grid x:Name="LayoutRoot">
        <my:TiltableGrid Background="Transparent">
            <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Center">
                <TextBlock Text="{Binding QuoteText}" Style="{StaticResource TitlePanelTextTitle2Style}" TextAlignment="Center"  HorizontalAlignment="Center" TextWrapping="Wrap" />
                <TextBlock Text="{Binding QuoteAuthor}" Style="{StaticResource TextLighter}" HorizontalAlignment="Right" />
            </StackPanel>
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="Tap">
                    <cmd:EventToCommand Command="{Binding GetCite}" />
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </my:TiltableGrid>
    </Grid>
</UserControl>
